package com.tengju.settlement.infrastructure.repository;

import com.tengju.settlement.domain.model.AgreementConfirm;
import com.tengju.settlement.domain.model.AgreementConfirmRepository;
import com.tengju.settlement.infrastructure.persistence.mybatis.mapper.tengju.custom.AgreementConfirmMapper;
import com.tengju.settlement.infrastructure.repository.convert.AgreementConfirmConvert;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

@Repository
public class AgreementConfirmRepositoryImpl implements AgreementConfirmRepository {

    @Resource
    AgreementConfirmMapper agreementConfirmMapper;

    @Override
    public void save(AgreementConfirm agreementConfirm) {
        agreementConfirmMapper.insert(AgreementConfirmConvert.convert(agreementConfirm));
    }
}
